package com.yuyou.fn.portal.service;

import com.github.wens.framework.service.ISuperService;
import com.yuyou.fn.portal.entity.OuterShoppingcart;
import com.yuyou.fn.portal.vo.ShoppingCartDetailVo;

import java.util.List;

/**
 *
 * OuterShoppingcart 表数据服务层接口
 *
 */
public interface IOuterShoppingcartService extends ISuperService<OuterShoppingcart,Long> {

     void  addToShoppingCartByQrCode(List<Long> classIds,Long userId,Long counselorId);

     OuterShoppingcart addToShoppingCart(Long classId, Long userId,Long counselorId);

     void deleteShoppingCart(List<Long> outerShoppingCartIds,Long userId);

     Long countNumByUserId(Long userId);

     List<ShoppingCartDetailVo> findShoppingCartList(Long userId);

     List<OuterShoppingcart> findOuterShoppingcart(Long userId);

     List<ShoppingCartDetailVo> findShoppingCartList(List<Long> outerShoppingCartIds);

     void deleteByUserIdAndClassId(Long userId,Long classId);


     OuterShoppingcart findOneRecent(Long userId);
}